package com.pms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.InfoContentEmployeeMapper;
import com.pms.pojo.InfoCareer;
import com.pms.pojo.InfoLanguage;
import com.pms.pojo.InfoSocial;



@Service
public class EmployeeContentServiceImpl implements EmployeeContentService {
    
	@Autowired
	private InfoContentEmployeeMapper  infoContentEmployee;
	
	@Override
	public List<InfoCareer> findCareerInfoAll(Integer empId) {
		List<InfoCareer> findCareerInfoAllList = infoContentEmployee.findCareerInfoAll(empId);
		return findCareerInfoAllList;
	}

	@Override
	public InfoCareer findCareerInfoById(Integer id) {
		InfoCareer careerInfoById = infoContentEmployee.findCareerInfoById(id);
		return careerInfoById;
	}

	@Override
	public void updateCareerInfoById(InfoCareer infoCareer) {
		infoContentEmployee.updateCareerInfoById(infoCareer);
		
	}

	@Override
	public void addCareerInfo(InfoCareer infoCareer) {
		infoContentEmployee.addCareerInfo(infoCareer);
		
	}

	@Override
	public void deleteCareerInfoById(Integer id) {
		infoContentEmployee.deleteCareerInfoById(id);
	}

	@Override
	public List<InfoLanguage> findLanguageInfoAll(Integer empId) {
		List<InfoLanguage> findLanguageInfoAll = infoContentEmployee.findLanguageInfoAll(empId);
		return findLanguageInfoAll;
	}

	@Override
	public InfoLanguage findLanguageInfoById(Integer id) {
		InfoLanguage findLanguageInfoById = infoContentEmployee.findLanguageInfoById(id);
		return findLanguageInfoById;
	}

	@Override
	public void updateLanguageInfoById(InfoLanguage infoLanguage) {
		infoContentEmployee.updateLanguageInfoById(infoLanguage);
		
	}

	@Override
	public void addLanguageInfo(InfoLanguage infoLanguage) {
		infoContentEmployee.addLanguageInfo(infoLanguage);
		
	}

	@Override
	public void deleteLanguageInfoById(Integer id) {
		infoContentEmployee.deleteLanguageInfoById(id);		
	}

	@Override
	public List<InfoSocial> findSocialInfoAll(Integer empId) {
		List<InfoSocial> findSocialInfoAll = infoContentEmployee.findSocialInfoAll(empId);
		return findSocialInfoAll;
	}

	@Override
	public InfoSocial findSocialInfoById(Integer id) {
		InfoSocial findSocialInfoById = infoContentEmployee.findSocialInfoById(id);
		return findSocialInfoById;
	}

	@Override
	public void updateSocialInfoById(InfoSocial infoSocial) {
		infoContentEmployee.updateSocialInfoById(infoSocial);
		
	}

	@Override
	public void addSocialInfo(InfoSocial infoSocial) {
		infoContentEmployee.addSocialInfo(infoSocial);
		
	}

	@Override
	public void deleteSocialInfoById(Integer id) {
		infoContentEmployee.deleteSocialInfoById(id);
		
	}

	
	

}
